package com.lmy.springCloud;

import com.lmy.springCloud.dao.MemberDao;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 使用@EnalbeEurekaClient：将该程序标识为eureka-client
 */
@EnableEurekaClient
@SpringBootApplication
public class MemberProviderApplication9090 {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MemberProviderApplication9090.class, args);
        MemberDao bean = run.getBean(MemberDao.class);
        System.out.println(bean);
    }
}
